import classes from './index.module.css';
import { useNavigate } from 'react-router-dom';
import classNames from 'classnames';

export default function TabHeader({ title }: { title: string }) {
  const navigate = useNavigate();

  return (
    <>
      <div className={classes.TabHeader}>
        <span
          className={classNames('iconfont', 'icon-back', classes.IconBack)}
          onClick={() => navigate(-1)}></span>
        <span>{title}</span>
      </div>
    </>
  );
}
